#include "gRtsp.h"

int main(){
    char *url="rtsp://admin:hisome123456@192.168.157.140";
    g_rtspRequest rtspRequest;
    memset(&rtspRequest,0,sizeof(rtspRequest));
    grtsp_paraseUrl(&rtspRequest.header,&rtspRequest.authInfo,url);
    rtspRequest.rtsp_sock =  grtsp_createTcpSocket(rtspRequest);
    if(rtspRequest.rtsp_sock != -1){
        if(grtsp_sendOptions(&rtspRequest)==0){
            ///GET OPtion SUC
            LOG("srvsup cmd:%s",rtspRequest.srv_supCmdList);
            LOG("rspCode:%d",rtspRequest.rspCode);            
            grtsp_sendDescribe(&rtspRequest);
        }else{
            LOG("Get Srv Options fail!");
        }
    }
    return 0;
}